Skip to content

feat(save-user-data): extend user data abstract class for api backend COMPASS-9558 #7114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 43 commits into
base: main
Choose a base branch
from

Conversation

myang1220
Copy link
Contributor

@myang1220 myang1220 commented Jul 15, 2025

Description

Extend the IUserData abstract class to create an AtlasUserData class that uses the endpoints created in CCS. Contains unit testing.

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

See comments

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@github-actions github-actions bot added the feat label Jul 15, 2025
@myang1220 myang1220 added the no release notes Fix or feature not for release notes label Jul 15, 2025
}

return true;
} catch (error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does the logging look? Are there any changes that I should make to make this more consistent with Compass behavior?

@myang1220 myang1220 requested review from Anemy and gribnoysup July 18, 2025 21:21
@myang1220 myang1220 marked this pull request as ready for review July 18, 2025 21:21
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gribnoysup @Anemy
Do you guys have any clue where these may have come from? I haven't personally modified any of them, so I wonder whether it's due to command line commands?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, those are not really related. Probably accidentally run a compile command across all packages? We haven't updated this in a while, so I guess there might be some slight formatting variations or something, probably better to just revert those from your patch

@@ -6,9 +6,8 @@ export class HistoryStorage {
userData;

constructor(basePath?: string) {
this.userData = new FileUserData(z.string().array(), {
this.userData = new FileUserData(z.string().array(), getAppName() ?? '', {
// Todo: https://jira.mongodb.org/browse/COMPASS-7080
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this todo should probably still point at the getAppName() part

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just referring to the TODO comment?

nvs119 added 6 commits August 12, 2025 16:20
Remove unwanted bson-transpilers changes that were accidentally included in the rebase.
This resets the bson-transpilers package back to its master state while preserving
the user-data related changes that are needed for this PR.
Rebuild the generated symbol table files to ensure they are properly
formatted and up-to-date with the current source templates.
@nvs119 nvs119 requested review from Anemy and gribnoysup August 12, 2025 22:23
@nvs119
Copy link
Contributor

nvs119 commented Aug 12, 2025

Trying to figure out if there are more outstanding comments here that I'll need to resolve as I'm finishing up this PR for Moses! This PR can be merged without fear (I believe) since the actual storage providers don't get added until the next PR. Let me know if that understanding is incorrect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat no release notes Fix or feature not for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants